package singleton.multipleton;

public class MultipletonClient {

	public static void main(String[] args) {
		Multipleton multipleton1 = Multipleton.getRandomInstance();
		System.out.println("multipleton1:" + multipleton1.getNo());
		Multipleton multipleton2 = Multipleton.getRandomInstance();
		System.out.println("multipleton2:" + multipleton2.getNo());
		if (multipleton1 == multipleton2) {
			System.out.println("-----同一个对象----");
		} else {
			System.out.println("-----不同对象----");
		}
	}

}
